@import url('https://fonts.googleapis.com/css2?family=Amatic+SC&family=Poppins:wght@100;300&display=swap');

:root {
    --primary-color: #303b47;
    --secondary-color: #66454f;
    --highlight: #666445;
    --white: antiquewhite;
}

/* Import Fonts from Google Fonts 
        font-family: 'Monoton', cursive;
        font-family: 'Poppins', sans-serif;
        font-family: 'Press Start 2P', cursive;
*/


/* Global Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--white);
}

h1 {
    font-size: 72px;
  /*  font-family: 'Press Start 2P', cursive; */
    padding: 30px 0 0 30px;
    display: flex;
    justify-content: flex-start;
    text-shadow: 2px 2px 5px black;
    color: var(--white);
}

h1, h2, h3 {
    font-family: 'Amatic SC', sans-serif;
}

h2 {
    font-size: 48px;
}

h3 {
    font-size: 36px;
}

body {
    font-family: 'Poppins', sans-serif;
    /* background-color: rgb(30, 30, 30); */
    width: 100%;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
}

a:hover {
    color: var(--highlight);
    text-decoration: none;
}

/* Navigation bar styles */

nav {
    display: flex;
    justify-content: flex-start;
    color: var(--white);
    /* background-image: url("../images/leon-bredella-W0xoY3dBRlM-unsplash.jpg"); */
    background-position: 80%;
    background-size: cover;
    background-attachment: fixed;
    padding-top: 15px;
    /* opacity: 50%; */
}

nav ul {
    margin: 10px 0 10px 20px;
}

nav ul li {
    display: inline;
    list-style-type: none;
    flex-basis: 200px;
    padding: 15px 20px;
    opacity: 100%;
}

nav ul li a {
    text-decoration: none;
    color: var(--white);
    opacity: 100%;
    padding: 10px;
}

nav ul li a:hover {
    color: var(--white); 
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-name: fadein;
}

@keyframes fadein {
    from {
        background-color: "";
    }

    to {
        background-color: var(--highlight);
        border-top-right-radius: 15px;
        border-bottom-left-radius: 15px;
    }
}

.dropdown p {
    display:none;
}


/* Section styles */

section {
    /* padding: 40px; */
    /* border: 2px white solid; */
    background-color: var(--white);
    width: 100%;
}

section h2 {
    /* background-color: var(--secondary-color); */
    color: var(--primary-color);
    padding: 25px 0;
    display: inline-block;
    /* border-top-right-radius: 25px; */
    text-shadow: 2px 2px 5px black;
    text-transform: uppercase;
}

/* Header Section Styles */
header {
    background-image: 
    linear-gradient(to right, rgba(0,0,0,.9), rgba(255,255,255,0)),
    url("../images/bailey-anselme-eN5axbs60Po-unsplash.jpg");
    background-attachment: fixed;
    background-position: 80%;
    color: var(--white);
    width: 100%;
}


/* Bio Section Styles */

.clearfix::after {
    content: "";
    clear: both;
    display: table;
  }

.bio img {
    height: 250px;
    width: 250px;
    /* border-radius: 50%; */
    border-radius: 50%;
    border: 2px var(--white) solid;
    /* position: relative; */
    /* left: 50px;
    top: 232px; */
    float: left;
    margin-right: 25px;
    
}

.bio div {
    padding: 15px;
    /* float: left; */
}  

.bio p {
    margin: 10px 0 10px 0;
}

.section-bg {
    background-color: rgba(255, 255, 255, .5);
    height: 100%;
} 

.bio {
    background-image: 
    linear-gradient(to right, rgba(0,0,0,.9), rgba(255,255,255,0)),
    url("../images/bailey-anselme-eN5axbs60Po-unsplash.jpg");
    background-attachment: fixed;
    background-position: 80%;
}

.bio div {
    width: 80%;
    margin: 0 auto;
    padding: 50px 10px;
}

.bio-text {
    margin-left: 25px;
    background-color: rgba(255, 255, 255, .4);
    border-top-left-radius: 25%;
    border-bottom-right-radius: 25%;
}


.intro-text h3 {
    color: var(--white);
    font-size: 48px;
}

.intro-text p {
    color: var(--white);
    font-size: 24px;
}

.about {
    width: 60%;
    margin: 0 auto;
    padding: 25px;
    background-color: var(--white);
}

.about p {
    padding: 10px 0;
}

/* Portfolio Section Styles */

.portfolio {

    background-color: var(--highlight);
    width: 100%;
}

.portfolio-div {
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}
.portfolio h2 {
    margin-left: 50px;
    color: var(--white);
    text-transform: uppercase;
}

.sample {
    background-color: var(--white);
    color: var(--primary-color);
    flex: 1;
    margin: 20px;
}

.sample-text {
    line-height: 1.3;
    padding: 25px;
}

.sample img {
    /* border: 1px solid black; */
    width: 100%;
    /* transform: scale(); */
    opacity: 50%;
}


.sample img:hover {
    opacity: 100%;
}


/* Contact section styles */

.contact {
    background-color: var(--white);
    border-bottom-left-radius: 25px;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.contact img {
    height: 32px;
    width: 32px;
    margin: 5px 10px;
}

#contact h2 {
    margin-left: 50px;
}



/* Footer Styles */

footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 15px;
    text-align: right;
}

footer a {
    color: var(--white);
}


@media screen and (max-width: 1024px) {
    #portfolio, #contact {
        margin: 2px;
    }
}

@media screen and (max-width: 786px) {

    .bio {
        display: flex;
        flex-direction: column;
    }

    .bio img {
        position: inherit;
        height: 150px;
        width: 150px;
    }

    section {
        margin: 2px;
    }
}